/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.stock.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 托盘明细Entity
 * @author 托盘明细
 * @version 2019-12-21
 */
public class ContainerDetail extends DataEntity<ContainerDetail> {
	
	private static final long serialVersionUID = 1L;
	private int number;		// 空盘数量
	private Woods woodsid;		// 物料id
	private String name;		// 名称
	private Container c;		// 托盘
	private WarehouseLoc w;		// 仓库
	private int wnumber;		// 货物数量

	public int getWnumber() {
		return wnumber;
	}

	public void setWnumber(int wnumber) {
		this.wnumber = wnumber;
	}

	public WarehouseLoc getW() {
		return w;
	}

	public void setW(WarehouseLoc w) {
		this.w = w;
	}

	public ContainerDetail() {
		super();
	}

	public ContainerDetail(String id){
		super(id);
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}
	
	public Woods getWoodsid() {
		return woodsid;
	}

	public void setWoodsid(Woods woodsid) {
		this.woodsid = woodsid;
	}
	
	@Length(min=0, max=255, message="名称长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=32, message="托盘长度必须介于 0 和 32 之间")
	public Container getC() {
		return c;
	}

	public void setC(Container c) {
		this.c = c;
	}
	
}